package com.lan.tian;

/**
 * @author lovvyang
 * @date 2020/5/12-15:45
 */
/*
 * @PackageName:com.lan.tian
 * @ClassName:DemoJun001
 * @Description
 * @author lovvyang
 * @date 2020/5/12/15:45
 **/

public class DemoJun001 {
    public static void main(String[] args) {
        System.out.println("李濮当年27,胸部有C,看起来好舒服,便宜谁了哇,祝愿他们幸福哇");
        int [] arr =new int[]{12,5,58,557,558,232,42,222,32223,123421,232132};
//        冒泡排序
        for (int i = 0; i < arr.length; i++) {
            for (int j = 0; j < arr.length - i - 1; j++) {
                if(arr[j]>arr[j+1]){
                    int temp =arr[j];
                    arr[j] =arr[j+1];
                    arr[j+1] =temp;
                }

            }
            System.out.println(arr[i]);
        }
    }
}
